//
//  JSQMessageData.h
//  Conversation
//
//  Created by C_HAO on 15/9/28.
//  Copyright © 2015年 CHAOO. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSQMessagesBubbleImage.h"
#import "JSQMessage.h"



@interface JSQChatMessageData : NSObject

@property (strong, nonatomic) NSMutableArray *messages;

@property (strong, nonatomic) JSQMessagesBubbleImage *outgoingBubbleImageData;

@property (strong, nonatomic) JSQMessagesBubbleImage *incomingBubbleImageData;

@property (strong, nonatomic) NSMutableDictionary *avatars;

@property (strong, nonatomic) NSMutableDictionary *users;


/**
 *  添加新消息
 *
 *  @param message
 */
- (void)addMessages:(JSQMessage *)message;
/**
 *  加入用户
 *
 *  @param userID      用户ID
 *  @param displayName 用户名
 */
- (void)joinUsers:(NSString *)userID displayName:(NSString *)displayName;
/**
 *  加入用户头像
 *
 *  @param userID
 *  @param complete
 */
- (void)joinUsersAvatar:(NSString *)userID complete:(UIImage * (^)(void))complete;
- (void)joinUsersAvatar:(NSString *)userID image:(UIImage *)image;
/**
 *  清除数据
 */
- (void)clearData;

@end
